package com.chuangsi.project.admin.dto.admin.agreement;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author wangshengming
 * @date 2023/3/24
 */
@Data
public class ResAgreementDetailDto {


    @ApiModelProperty(value = "合同模板id")
    @NotEmpty(message = "合同模板id不能为空")
    @Size(max = 32, message = "合同模板id长度过长")
    private String agreementId;

    @ApiModelProperty(value = "合同模板名称")
    @NotEmpty(message = "合同模板名称不能为空")
    @Size(max = 50, message = "合同模板名称长度过长")
    private String agreementName;

    @ApiModelProperty(value = "客户名称")
    @NotEmpty(message = "客户名称不能为空")
    @Size(max = 30, message = "客户名称长度过长")
    private String customName;

    @ApiModelProperty(value = "客户联系方式")
    @NotEmpty(message = "客户联系方式不能为空")
    @Size(max = 30, message = "客户联系方式长度过长")
    private String customPhone;

    @ApiModelProperty(value = "销售金额")
    private BigDecimal money;

    @ApiModelProperty(value = "产品类型（1.原厂代销，2.其他代销，3.传统）")
    @NotEmpty(message = "产品类型（1.原厂代销，2.其他代销，3.传统）不能为空")
    @Size(max = 1, message = "产品类型（1.原厂代销，2.其他代销，3.传统）长度过长")
    private String type;

    @ApiModelProperty(value = "支付类型（1.全款，2.分期）")
    @NotEmpty(message = "支付类型（1.全款，2.分期）不能为空")
    @Size(max = 1, message = "支付类型（1.全款，2.分期）长度过长")
    private String payType;

    @ApiModelProperty(value = "部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @ApiModelProperty(value = "合同详情")
    @NotEmpty(message = "合同详情不能为空")
    @Size(max = 500, message = "合同详情长度过长")
    private String agreementDetail;

    @ApiModelProperty(value = "自定义字段（json格式）")
    @NotEmpty(message = "自定义字段（json格式）不能为空")
    private String selfField;

    @ApiModelProperty(value = "当前用户是否可以审批（1.是，2.否）")
    private String isMy;

}